<span class="building-title">BUILDINGS</span>
<?php
foreach ( $this->buildingsArray as $key => $value )
{
	$building_name = ucwords($key);
	$building_level = $value;

	$building_nameUrl = str_replace(" ", "", $key);
	//$building_nameUrl = lcfirst($building_nameUrl);
  	
  	$urlArray = array('controller' =>'buildings', 'action'=>'actions');
	echo '<span class="building-name">';
	echo '<a class="kingdom-building" href="'.$this->url($urlArray, null, true).'?v='.$building_nameUrl.'" title="' . $building_name . '">'.$building_name.'</a>'.' is now on level '. $building_level;
	echo '</span>';
}

echo '<span>Click on the building name to enter into that building options</span>';
?>
